package com.mark.base;

import com.mark.util.IdWorker;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;


/**
 * @Author Markburt
 * @Description : 启动类
 * @DATE: 6/8/2020
 * @TIME: 1:15 PM
 * @YEAR: 2020
 * @Version : 0.0.1
 **/

@SpringBootApplication
public class BaseApplication {
    public static void main(String[] args) {
        SpringApplication.run(BaseApplication.class,args);
    }

    @Bean
    public IdWorker idWorker(){
        return new IdWorker(1, 1);
    }
}
